<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.11.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: CPGraph: Class TCPColorPalette</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<a name="TCPColorPalette"></a><h1 class="cio">Class TCPColorPalette</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Description</a></td><td><a class="section"  href="#%40Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section"  href="#%40Methods">Methods</a></td><td><a class="section"  href="#%40Properties">Properties</a></td></tr></table>
<a name="%40Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a   href="CPGraph.html">CPGraph</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCPColorPalette = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
Color palette that provides a theoretically infinite long series of unique colors. The color palette is optimized to provide colors that visually differ from each other especially for low indexes. Also the returned colors visually distinguish from a specified background color.</p>
<a name="%40Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">TCPColorPalette</li></ul><h2 class="overview">Overview</h2>
<a name="%40Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a   href="CPGraph.TCPColorPalette.html#Create">Create</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a   href="CPGraph.TCPColorPalette.html#GetColor">GetColor</a></b>(Index: Integer): TColor;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="CPGraph.TCPColorPalette.html#SetHueWeights">SetHueWeights</a></b>(HueWeights: array of Single);</code></td>
</tr>
</table>
<a name="%40Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="CPGraph.TCPColorPalette.html#BackColor">BackColor</a></b>: TColor read FBackColor write SetBackColor;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GetColor"></a><code>function <b>GetColor</b>(Index: Integer): TColor;</code></td>
</tr>
<tr><td colspan="2">
<p>
Retrieves for the specified index a color from the palette.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SetHueWeights"></a><code>procedure <b>SetHueWeights</b>(HueWeights: array of Single);</code></td>
</tr>
<tr><td colspan="2">
<p>
Sets a new weighting of hues By default the color palette is set to produce more colors between red and yellow, as well as cyan and blue. This is because, human perception can identify more half tones between these color hues.  spectrum. The specified array needs to have 6 elements. Each element specifies the weight for one segment of the hue spectrum: The first element specifies weighting from Red to Yellow, the second from Yellow to Green, the third from Green to Cyan, the forth from Cyan to Blue, the fifth from Blue to Magenta and the sixth from Magenta to Red. The weights can be any number greater than or equal to zero, however at least one element needs to be greater than zero.</p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>HueWeights</dt>
<dd>Weights for different segments of the color hue</dd>
</dl>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="BackColor"></a><code>property <b>BackColor</b>: TColor read FBackColor write SetBackColor;</code></td>
</tr>
<tr><td colspan="2">
<p>
Sets background color. This will affect the colors in the palette. For bright background colors the color palette is darkended, however hue and saturation of the palette colors will not change.</p>
</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.11.0</a> on 2009-07-25 15:33:03</em>
</span>
</body></html>
